//
//  LCHotRecommendRootClass.m
//  LCOnePsychology
//
//  Created by li cheng on 16/09/01
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "LCHotRecommendRootClass.h"
#import "LCDataOfHotRecommend.h"

@implementation LCHotRecommendRootClass

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [LCDataOfHotRecommend class]};
}
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray *mArray = [NSMutableArray array];
        for (NSDictionary *dic in _data) {
            LCDataOfHotRecommend *dataOfHotRecommend= [LCDataOfHotRecommend modelDic:dic];
            [mArray addObject:dataOfHotRecommend];
        }
        _data = mArray;
    }
}
@end
